#include "TextureManager.h"


TextureManager::TextureManager()
{
	instance = NULL;
}
TextureManager::~TextureManager()
{
}
TextureManager* TextureManager::getInstance() 
{
		if (instance == NULL)
			instance = new TextureManager();
		return instance;
}
Texture*  TextureManager::load(std::string filename)
{
		Texture* tex = new Texture();
		if(!tex->load(filename.c_str())){
			delete tex;
			return NULL;
		}
		return tex;
}
TextureManager* TextureManager:: instance = NULL;